﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CommonModule;

namespace Web.Views.SystemLogin
{
    /// <summary>
    /// Head 的摘要说明。
    /// </summary>
    public partial class Head : PageBase
    {

        //protected System.Web.UI.WebControls.Button btnSetLanguage;
        //protected System.Web.UI.WebControls.Literal litSelectLanguage;
        /// <summary>
        /// To display help
        /// </summary>
        protected Literal litHelp;
        /// <summary>
        /// Literal Control
        /// </summary>
        protected Literal Literal1;

        protected Label lblProjectName;


        /// <summary>
        /// 属性：当前登录用户名
        /// </summary>
        public String User_ID
        {
            get
            {
                if (User.Identity.IsAuthenticated)
                {
                    return User.Identity.Name;
                }
                return "guest";
            }
        }
        /// <summary>
        /// UserName
        /// </summary>
        public String User_Name
        {
            get
            {
                return base.CurrentUser.User_Name;
            }
        }

        /// <summary>
        /// Load页面
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {

            //不输出Javascript
            //litScript.Visible=false;
            //ModuleID="Head";
            this.DBHelpName = DBHelperString.Dictionary;
            if (!Page.IsPostBack)
            {

                //绑定各控件的值
                Page.DataBind();
            }
        }

        #region Web 窗体设计器生成的代码
        /// <summary>
        /// 
        /// </summary>

        override protected void OnInit(EventArgs e)
        {
            //
            // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
            //
            InitializeComponent();
            base.OnInit(e);
        }

        /// <summary>
        /// 设计器支持所需的方法 - 不要使用代码编辑器修改
        /// 此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.Load += new EventHandler(this.Page_Load);

        }
        #endregion

    }
}
